import {defineConfig, loadEnv} from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig(({mode}) => {
  const env = loadEnv(mode, process.cwd());
  return {
    plugins: [vue()],
    server: {
      port: 5173, // 设置新的端口号为 5173
    },
    baseURL: env.VITE_BASE_URL,
    socketBaseURL: env.VITE_SOCKET_BASE_URL
  }
})


